﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace HRMService
{
    // NOTE: If you change the interface name "IEvaluation" here, you must also update the reference to "IEvaluation" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IEvaluation
    {
        [OperationContract]
        DataSet Evaluation_GetAll();

        [OperationContract]
        EvaluationInfo Evaluation_GetInfo(int EvaluationID);

        [OperationContract]
        DataSet Evaluation_GetList( out int ItemCount,int currentPage, int pageSize);

        [OperationContract]
        int Evaluation_Insert(EvaluationInfo eInfo);

        [OperationContract]
        bool Evaluation_Update(EvaluationInfo eInfo);

        [OperationContract]
        bool Evaluation_Delete(int EvaluationID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class EvaluationInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        bool _Probation;
        [DataMember]
        public bool Probation
        {
            get { return _Probation; }
            set { _Probation = value; }
        }
        bool _Working;
        [DataMember]
        public bool Working
        {
            get { return _Working; }
            set { _Working = value; }
        }
        string _Description;
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
    }
   
}
